<?php

namespace app\api\validate;


use \think\Validate;

/**
 *  用户登录验证类
 */
class Subscribe extends Validate
{
    protected $rule = [
        'email' => 'require|email'
    ];

    //定义验证提示
    protected $message = [
        'email.require' => 'user.emailRequire',
        'email.email' => 'user.emailEmail'
    ];

    //定义验证场景
    protected $scene = [
        'email' => ['email']
    ];


}
